{ //=========Macro generated from canvas: srp-Mokka-pt/ //========= (Wed Feb 25 11:08:18 2009) by ROOT version5.14/00f TCanvas *c1 = new TCanvas("c1", "",18,56,800,800); gStyle->SetOptStat(0); c1->Range(-0.667896,-0.286076,2.99174,1.30324); c1->SetFillColor(10); c1->SetBorderMode(0); c1->SetBorderSize(2); c1->SetLogx(); // c1->SetLogy(); c1->SetTickx(); c1->SetTicky(); c1->SetLeftMargin(0.17); c1->SetRightMargin(0.08); c1->SetTopMargin(0.08); c1->SetBottomMargin(0.18); c1->SetFrameLineWidth(2); c1->SetFrameBorderMode(0); c1->SetFrameLineWidth(2); c1->SetFrameBorderMode(0); TGraphErrors *gre = new TGraphErrors(9); gre->SetName("LDC01"); gre->SetTitle(""); gre->SetFillColor(1); gre->SetLineColor(4); gre->SetLineWidth(2); gre->SetMarkerColor(4); gre->SetMarkerStyle(24); gre->SetMarkerSize(1.0); gre->SetPoint(0,0.9995,11.1494); gre->SetPointError(0,0,0.172859); gre->SetPoint(1,1.5003,7.91615); gre->SetPointError(1,0,0.119183); gre->SetPoint(2,2.0002,6.22358); gre->SetPointError(2,0,0.0931704); gre->SetPoint(3,3.0002,4.8388); gre->SetPointError(3,0,0.070469); gre->SetPoint(4,4.9999,3.74949); gre->SetPointError(4,0,0.0529241); gre->SetPoint(5,10.0004,2.8071); gre->SetPointError(5,0,0.0374971); gre->SetPoint(6,29.9998,2.05246); gre->SetPointError(6,0,0.0280773); gre->SetPoint(7,49.9999,1.87192); gre->SetPointError(7,0,0.0254327); gre->SetPoint(8,99.9999,1.71891); gre->SetPointError(8,0,0.0217587); TH1 *LDC011 = new TH1F("LDC011","",100,0.9,300); LDC011->SetMinimum(0); LDC011->SetMaximum(14); LDC011->SetDirectory(0); LDC011->SetStats(0); LDC011->SetLineWidth(2); LDC011->SetMarkerStyle(20); LDC011->SetMarkerSize(1.0); LDC011->GetXaxis()->SetTitle("p_{T}/GeV"); LDC011->GetXaxis()->SetNdivisions(506); LDC011->GetXaxis()->SetLabelFont(42); LDC011->GetXaxis()->SetLabelOffset(0.01); LDC011->GetXaxis()->SetLabelSize(0.06); LDC011->GetXaxis()->SetTitleSize(0.07); LDC011->GetXaxis()->SetTitleOffset(1.1); LDC011->GetXaxis()->SetTitleFont(42); LDC011->GetYaxis()->SetTitle("#sigma_{r#phi}/#mum"); LDC011->GetYaxis()->SetNdivisions(506); LDC011->GetYaxis()->SetLabelFont(42); LDC011->GetYaxis()->SetLabelOffset(0.015); LDC011->GetYaxis()->SetLabelSize(0.06); LDC011->GetYaxis()->SetTitleSize(0.07); LDC011->GetYaxis()->SetTitleOffset(1.1); LDC011->GetYaxis()->SetTitleFont(42); LDC011->GetZaxis()->SetLabelFont(42); LDC011->GetZaxis()->SetLabelOffset(0.015); LDC011->GetZaxis()->SetLabelSize(0.06); LDC011->GetZaxis()->SetTitleSize(0.07); LDC011->GetZaxis()->SetTitleOffset(1.1); LDC011->GetZaxis()->SetTitleFont(42); LDC011->GetXaxis()->SetRange(1,50); gre->SetHistogram(LDC011); gre->Draw("pla"); gre = new TGraphErrors(9); gre->SetName("LDCPrim"); gre->SetTitle("LDCPrim"); gre->SetFillColor(1); gre->SetLineColor(1); gre->SetLineWidth(2); gre->SetMarkerColor(1); gre->SetMarkerStyle(21); gre->SetMarkerSize(1.0); gre->SetPoint(0,0.9995,10.2858); gre->SetPointError(0,0,0.166664); gre->SetPoint(1,1.5003,7.14481); gre->SetPointError(1,0,0.106779); gre->SetPoint(2,2.0002,5.73295); gre->SetPointError(2,0,0.078556); gre->SetPoint(3,3.0002,4.52202); gre->SetPointError(3,0,0.0650839); gre->SetPoint(4,4.9999,3.48635); gre->SetPointError(4,0,0.0529573); gre->SetPoint(5,10.0004,2.70571); gre->SetPointError(5,0,0.0372694); gre->SetPoint(6,29.9998,2.00564); gre->SetPointError(6,0,0.0285529); gre->SetPoint(7,49.9999,1.85044); gre->SetPointError(7,0,0.0240881); gre->SetPoint(8,99.9999,1.63046); gre->SetPointError(8,0,0.022206); gre->Draw("pl"); gre = new TGraphErrors(9); gre->SetName("LDCGLD"); gre->SetTitle("LDCGLD"); gre->SetFillColor(1); gre->SetLineColor(2); gre->SetLineWidth(2); gre->SetMarkerColor(2); gre->SetMarkerStyle(20); gre->SetMarkerSize(1.0); gre->SetPoint(0,0.9995,9.83676); gre->SetPointError(0,0,0.160633); gre->SetPoint(1,1.5003,6.86819); gre->SetPointError(1,0,0.11431); gre->SetPoint(2,2.0002,5.61457); gre->SetPointError(2,0,0.0787644); gre->SetPoint(3,3.0002,4.41153); gre->SetPointError(3,0,0.0635781); gre->SetPoint(4,4.9999,3.39238); gre->SetPointError(4,0,0.0477441); gre->SetPoint(5,10.0004,2.59874); gre->SetPointError(5,0,0.0349243); gre->SetPoint(6,29.9998,1.93265); gre->SetPointError(6,0,0.0254702); gre->SetPoint(7,49.9999,1.7848); gre->SetPointError(7,0,0.0230999); gre->SetPoint(8,99.9999,1.67055); gre->SetPointError(8,0,0.021808); gre->Draw("pl"); TLegend *leg = new TLegend(0.29,0.71,0.5,0.9,NULL,"brNDC"); // leg->SetTextFont(22); leg->SetTextSize(0.043); leg->SetLineColor(1); leg->SetLineStyle(1); leg->SetFillColor(1); leg->SetFillStyle(0); leg->SetBorderSize(0); TLegendEntry *entry=leg->AddEntry("NULL","GLD","ple"); entry->SetLineColor(2); entry->SetLineStyle(1); entry->SetMarkerColor(2); entry->SetMarkerStyle(20); entry->SetMarkerSize(1.3); entry->SetTextAlign(12); entry->SetTextColor(1); TLegendEntry *entry=leg->AddEntry("NULL","GLDPrime","ple"); entry->SetLineColor(1); entry->SetLineStyle(1); entry->SetMarkerColor(1); entry->SetMarkerStyle(21); entry->SetMarkerSize(1.3); entry->SetTextAlign(12); entry->SetTextColor(1); TLegendEntry *entry=leg->AddEntry("NULL","GLD4LDC","ple"); entry->SetLineColor(4); entry->SetLineStyle(1); entry->SetMarkerColor(4); entry->SetMarkerStyle(24); entry->SetMarkerSize(1.25); entry->SetTextAlign(12); entry->SetTextColor(1); leg->Draw(); TLegend *leg1 = new TLegend(0.52,0.69,0.62,0.89,NULL,"brNDC"); // leg->SetTextFont(22); leg1->SetTextSize(0.032); leg1->SetLineColor(1); leg1->SetLineStyle(1); leg1->SetFillColor(1); leg1->SetFillStyle(0); leg1->SetBorderSize(0); TLegendEntry *entry=leg1->AddEntry("NULL","(B=3.0 T, R_{min}= 17.5 mm)",""); entry->SetLineColor(2); entry->SetLineStyle(1); entry->SetMarkerColor(2); entry->SetMarkerStyle(20); entry->SetMarkerSize(1.3); entry->SetTextAlign(12); entry->SetTextColor(1); TLegendEntry *entry=leg1->AddEntry("NULL","(B=3.5 T, R_{min}= 16 mm)",""); entry->SetLineColor(1); entry->SetLineStyle(1); entry->SetMarkerColor(1); entry->SetMarkerStyle(21); entry->SetMarkerSize(1.3); entry->SetTextAlign(12); entry->SetTextColor(1); TLegendEntry *entry=leg1->AddEntry("NULL","(B=4.0 T, R_{min}= 15 mm)",""); entry->SetLineColor(4); entry->SetLineStyle(1); entry->SetMarkerColor(4); entry->SetMarkerStyle(24); entry->SetMarkerSize(1.25); entry->SetTextAlign(12); entry->SetTextColor(1); leg1->Draw(); TLatex * tex = new TLatex(1.2,12.6,"a)"); // tex->SetTextFont(22); tex->SetTextSize(0.06); tex->SetLineWidth(2); tex->Draw(); c1->Modified(); c1->cd(); c1->SetSelected(c1); c1->SaveAs("d0res.eps"); c1->SaveAs("d0res.gif"); }